package org.example.exp3.exam5;

public class EditableTextArea extends Editor {
   private StringBuilder str = new StringBuilder();

   public void edit(String appendStr){
      str.append(appendStr);
      System.out.println("编辑文本：" + appendStr);
      super.notifyObservers();
   }

   public StringBuilder getStr(){
      return str;
   }
}